﻿using System.Collections.Generic;
using System.Linq;

namespace Tuxedo.Compile
{
	internal class FakeBlock : CodeLine
	{
		private CodeLine[] nestedLines;

		public FakeBlock(IList<CodeLine> nestedLines)
		{
			this.nestedLines = nestedLines.ToArray();
		}

		public static CodeLine Parse(TokenStream tokens)
		{
			return new FakeBlock(CodeLine.ParseBlock(tokens, false));
		}
	}
}
